import { ApiProperty } from '@nestjs/swagger';
import { IsString, MinLength } from 'class-validator';

export class ResetUserPasswordDto {
  @ApiProperty({
    description: '新密码',
    default: null,
  })
  @IsString()
  @MinLength(6, { message: '密码长度不少于6位' })
  newPassword: string;

  @ApiProperty({
    description: '旧密码',
    default: null,
  })
  @IsString()
  password: string;
}
